<template>
	<view class="body">
		<view class="title">邀请好友人数:{{invite.totalRec}}人</view>
		<view class="main">
			<view class="list" v-for="(item,index) in invite.umsMemberRecommendRecords">
				<view class="list_name">{{item.userName}}</view>
				<view class="list_time">{{item.createTime}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: 'InviteWelfare', // 页面名称
		components: {}, // 挂载组件
		props: {}, // 组件传值
		data() {
			return {
				invite:null
			}
		},
		onLoad(options) {
			var that = this;
			this.$u.api.inviteRecord({
				pageNum:1,
				pageSize:1000
			}).then((res) => {
				that.invite = res.data;
			})
		}, 
		methods: {
			
		}
	}
</script>

<style lang="scss">
	page{
		.title{
			width: 100%;
			height: 80rpx;
			line-height: 80rpx;
			box-sizing: border-box;
			padding-left: 30rpx;
			font-size: 30rpx;
		}
		.list{
			width: 100%;
			height: 120rpx;
			box-sizing: border-box;
			padding-left: 20rpx;
			padding-top: 10rpx;
			background: #FFFFFF;
			margin-bottom: 20rpx;
			view{
				width: 100%;
				height: 50rpx;
				line-height: 50rpx;
				font-size: 28rpx;
			}
			.list_time{
				color: #333333;
			}
		}
	}
</style>